import request from '@/utils/request'
// 查询首页轮播图列表
export function listBanner(shopId) {
  return request({
    url: `/web/shopAdvertInfo/page/list/${shopId}`,
    method: 'get'
  })
}
// 新增
export function addBanner(data) {
  return request({
    url: '/web/shopAdvertInfo',
    method: 'post',
    data:data
  })
}
// 编辑
export function editBanner(data) {
  return request({
    url: '/web/shopAdvertInfo',
    method: 'put',
    data:data
  })
}
// 编辑
export function deleteBanner(id) {
  return request({
    url: `/web/shopAdvertInfo/${id}`,
    method: 'delete'
  })
}
// 获取用户店铺信息
export function getStoreInfo() {
  return request({
    url: `/mock/11/web/shop/`,
    method: 'get'
  })
}
// 获取店铺商品信息
export function products(data) {
  return request({
    url: `/sys/shopGoodsInfo/list`,
    method: 'post',
    data:data
  })
}
